package com.zyy.ui.policy.dto;

import com.zyy.ui.annotations.Region;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @ClassName: ApplicantDTO
 * @Description: 投保人信息
 * @Author: zyy
 * @Date: 2020/05/03 00:28
 * @Version: 1.0
 */
@ApiModel("投保人信息")
@Data
public class ApplicantDTO {
    @ApiModelProperty(value = "姓名")
    @NotBlank(message = "applicantList.name不可为空")
    private String name;
    @ApiModelProperty(value = "性别：F-女 M-男")
    @Region(value = {"F", "M"}, message = "applicantList.sex值不在可选范围")
    private String sex;
    @ApiModelProperty(value = "证件类型")
    private String certificateType;
    @ApiModelProperty(value = "证件号码")
    private String certificateNo;
}
